﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MO.ModelingClient
{
    public partial class ItemCheckboxControl : ItemBaseControl
    {
        public ItemCheckboxControl(string title, string description)
        {
            InitializeComponent();
            base.Init(title);
            checkBox.Text = description;
        }
        public override void SetValue(object value)
        {
            checkBox.Checked = Convert.ToBoolean(value);
        }
        public override object GetValue()
        {
            return checkBox.Checked;
        }
        public override void SetEnabled(bool enabled)
        {
            this.checkBox.Enabled = enabled;
        }
    }
}
